<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateArearecsTable extends Migration
{

    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('arearecs', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('sp_id')->default(0)->unsigned()->comment('SPID');
            $table->string('page_id', 100)->nullable()->comment('页面ID');
            $table->string('areaid', 100)->nullable()->comment('areaid');
            $table->string('subareaid', 100)->nullable()->comment('subareaid');
            $table->string('data')->nullable()->comment('data');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('arearecs');
    }
}
